package eol;
import static org.junit.Assert.*;

import org.junit.Test;


public class Arithmetic extends BasicTest {


    @Test
    public void testAdd() {
        assertEquals( "17.0"+newline, go("2 + 5 + 10 ;" ) ) ;
    }
    
    @Test
    public void testSub() {
        assertEquals( "19.0"+newline, go("30 - 5 - 6 ;" ) ) ;
    }
    
    @Test
    public void testMul() {
        assertEquals( "100.0"+newline, go("10 * 5 * 2 ;") ) ;
    }
    
    @Test
    public void testDiv() {
        assertEquals( "10.0"+newline, go("100 / 5 / 2 ;") ) ;
    }
}
